<%= text_f f, :name, :disabled => !new_vm, :class => "ovirt_name", :label => _('Name'), :label_size => "col-md-3" %>

<% selected_cluster ||= params.fetch(:host, {}).fetch(:compute_attributes, {}).fetch(:cluster, nil) %>
<% selected_cluster ||= compute_resource.clusters.first.try(:id) %>
<%= select_f f, :network, compute_resource.networks(selected_cluster ? { :cluster_id => selected_cluster } : { }), :id, :name,
             { }, :disabled => !new_vm, :class => "ovirt_network",
             :label         => _('Network'), :label_size => "col-md-3" %>
<%= select_f f, :interface, compute_resource.nictypes,
               :id, :name, {}, :label => _('Interface type'), :label_size => "col-md-3", :disabled => !new_vm, :class => "ovirt_network" %>
